<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  	<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  	<title>Entries: <%= controller.action_name %></title>
  	<%= stylesheet_link_tag 'uniblog' %>
	<%= javascript_include_tag :defaults %>
</head>
<body>
<div id="wrapper">
	<div id="header"><%= link_to "header", entries_path %></div>
	<div id="main">
		<p style="color: green"><%= flash[:notice] %></p>
		<%= yield  %>
	</div>
	<div id="sidebar">
		<p><%= link_to image_tag("feed.png", :align => "absmiddle"), "/index.rss" %> <%= link_to "All Entries", "/index.rss" %></p>
		<ul>
		<% Category.active_categories.each do |cat| %>
			<li><%= link_to cat.name, "/categories/#{cat.id}/entries" %></li>
		<% end %>
		</ul>
	</div>
	<div id="footer">
		footer
	</div>
</div>
</body>
</html>
